home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / H / ALLOC.H < prev    next >
C/C++ Source or Header  |  1997-03-15  |  582b  |  27 lines

  1. #ifndef __ALLOC_H__
  2. #define __ALLOC_H__
  3.  
  4. #include <stddef.h>
  5.  
  6. #ifdef __cplusplus
  7.   extern "C" {
  8. #endif
  9.  
  10. extern void * malloc(dword);         //NULL=error
  11. extern void * calloc(dword,dword);   //NULL=error
  12. extern sbyte free(void *);
  13. extern dword qfree(void);        //query largest free block of RAM
  14. extern dword coreleft(void);     //find total avail RAM
  15. extern void * realloc(void *,dword);  //FIXED : v2.00 Beta #3
  16.  
  17. #ifdef __cplusplus
  18.   }
  19. #endif
  20.  
  21. #define farmalloc malloc
  22. #define farcalloc calloc
  23. #define farfree free
  24. #define farcoreleft coreleft
  25.  
  26. #endif
  27.